﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 收货单拉单DTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class POToRcvDocDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public POToRcvDocDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        			if (this.RcvLines!=null)
			{
				foreach(ufida.u9.ait.openapi.CopyOfPOToRcvTransDTOData objdata in this.RcvLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
			
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public POToRcvDocDTOData(  System.String docNo  , List<ufida.u9.ait.openapi.CopyOfPOToRcvTransDTOData> rcvLines  )
		{
			initData();
			this.DocNo = docNo;
			this.RcvLines = rcvLines;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 收货单号
		/// 收货单拉单DTO.Misc.收货单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 收货单行集合
		/// 收货单拉单DTO.Misc.收货单行集合
		/// </summary>
		private List<ufida.u9.ait.openapi.CopyOfPOToRcvTransDTOData> m_rcvLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.CopyOfPOToRcvTransDTOData> RcvLines
		{
			get	
			{	
				if (m_rcvLines == null )
				{
					List<ufida.u9.ait.openapi.CopyOfPOToRcvTransDTOData> n_m_list = new List<ufida.u9.ait.openapi.CopyOfPOToRcvTransDTOData>() ;
					m_rcvLines = n_m_list ;
				}
				return m_rcvLines ;
			}
			set	
			{	
				m_rcvLines = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
				
		#endregion 
	} 	
}
